<?php foreach ($articles as $article): ?>
	<div class="topic_list">
	</div>
	<div class="article_title"><?php echo $article['Article']['title']?></div>
	<div class="article_widget">
		<div class="note left">
			Người viết: 
			<?php echo $this->Html->link(
    				$article['User']['name'],
					'/users/view/'.$article['Article']['userId'],
					array('escape' => false,'title' => $article['User']['name'],'class'=>'small-user')
				);
			?>
			<br/>
			Ngày gửi: <span>$.timeFormat(<?php echo $article['Article']['since']?>)</span><br/>
			Loại bài viết: <span>
			<?php 
				if ($article['Article']['type'] == 2) 
					echo $this->Html->link(
						'Chia sẻ kinh nghiệm',
						'/articles/listType/2',
						array('escape' => false,'title' => 'Chia sẻ kinh nghiệm')
					);
				if ($article['Article']['type'] == 4) 
					echo $this->Html->link(
						'Phỏng vấn',
						'/articles/listType/4',
						array('escape' => false,'title' => 'Phỏng vấn')
					);
				if ($article['Article']['type'] == 1) 
					echo $this->Html->link(
						'Bài báo khoa học',
						'/articles/listType/1',
						array('escape' => false,'title' => 'Bài báo khoa học')
					);
			?></span>
		</div>
		<div onclick="generateEvent('ArticleVoteSubmit')" class="note right">
			<div id="ArticleCommentPortlet-ArticleVote" class="count_right no_margin"><?php echo $article['Article']['vote']?></div>
		</div>
	</div>
	
	<div class="article_content">
		<div class="ans-content" aid="<%=id%>">
			<?php echo $article['Article']['content']?>
		</div>
	</div>
	<div class="comment_outer">
		<div class="box4">
	   		<div class="content">
				<div class="q-middle">									
	            	<div id="ArticleCommentPortlet-NavigationLink"></div>					          	
				</div>
			</div>
		</div>
	</div>
	<div class="box4">
		<div class="content">
			<div class="q-middle">
				<div id="ArticleCommentPortlet-TextAreaContainer"></div>			          	
			</div>
		</div>
	</div>
<?php endforeach; ?>
<?php unset($article); ?>